using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class perio_plMap : EntityTypeConfiguration<perio_pl>
    {
        public perio_plMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.descript)
                .IsFixedLength()
                .HasMaxLength(40);

            // Table & Column Mappings
            this.ToTable("perio_pl");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.pat_id).HasColumnName("pat_id");
            this.Property(t => t.plan_nb).HasColumnName("plan_nb");
            this.Property(t => t.date).HasColumnName("date");
            this.Property(t => t.descript).HasColumnName("descript");
        }
    }
}
